<%@ page import="java.util.Objects" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Set" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/4/6
  Time: 10:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录成功</title>
</head>
<body>

<%--    登录--%>
    <%
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        if ("admin".equals(username) && "123".equals(password)){
            session.setAttribute("user",username);
        }else{
            request.setAttribute("mesg","账号或密码不正确");
            request.getRequestDispatcher("login.jsp").forward(request,response);
        }
    %>

<%--    过滤是否登录--%>
<%--<%@ include file="interceptor.jsp"%>--%>

    <h2>登录注册成功</h2>
</body>
</html>
